home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / misc / gnuplot-3.7src.lha / gnuplot-3.7src / gnuplot-3.7.lha / gnuplot-3.7 / fit.h < prev    next >
C/C++ Source or Header  |  1998-10-29  |  2KB  |  64 lines

  1. /* $Id: fit.h,v 1.11 1998/04/14 00:15:21 drd Exp $ */
  2.  
  3. /*
  4.  *    Header file: public functions in fit.c
  5.  *
  6.  *
  7.  *    Copyright of this module:   Carsten Grammes, 1993
  8.  *      Experimental Physics, University of Saarbruecken, Germany
  9.  *
  10.  *    Internet address: cagr@rz.uni-sb.de
  11.  *
  12.  *    Permission to use, copy, and distribute this software and its
  13.  *    documentation for any purpose with or without fee is hereby granted,
  14.  *    provided that the above copyright notice appear in all copies and
  15.  *    that both that copyright notice and this permission notice appear
  16.  *    in supporting documentation.
  17.  *
  18.  *      This software is provided "as is" without express or implied warranty.
  19.  */
  20.  
  21.  
  22. #ifndef FIT_H        /* avoid multiple inclusions */
  23. #define FIT_H
  24.  
  25. #ifdef EXT
  26. #undef EXT
  27. #endif
  28.  
  29. #ifdef FIT_MAIN
  30. #define EXT
  31. #else
  32. #define EXT extern
  33. #endif
  34.  
  35. #include "plot.h"
  36.  
  37. #include "ansichek.h"
  38.  
  39. #define FIT_SKIP "FIT_SKIP"
  40.  
  41. EXT char    *fit_index;
  42. EXT char    fitbuf[256];
  43.  
  44. /*****************************************************************
  45.     Useful macros
  46.     We avoid any use of varargs/stdargs (not good style but portable)
  47. *****************************************************************/
  48.  
  49. #define Dblf(a)         {fprintf (STANDARD,a); fprintf (log_f,a);}
  50. #define Dblf2(a,b)      {fprintf (STANDARD,a,b); fprintf (log_f,a,b);}
  51. #define Dblf3(a,b,c)    {fprintf (STANDARD,a,b,c); fprintf (log_f,a,b,c);}
  52. #define Dblf5(a,b,c,d,e) \
  53.                 {fprintf (STANDARD,a,b,c,d,e); fprintf (log_f,a,b,c,d,e);}
  54. #define Dblf6(a,b,c,d,e,f) \
  55.                 {fprintf (STANDARD,a,b,c,d,e,f); fprintf (log_f,a,b,c,d,e,f);}
  56.  
  57. #define Eex(a)        {sprintf (fitbuf+9, (a));         error_ex ();}
  58. #define Eex2(a,b)   {sprintf (fitbuf+9, (a),(b));     error_ex ();}
  59. #define Eex3(a,b,c) {sprintf (fitbuf+9, (a),(b),(c)); error_ex ();}
  60.  
  61. EXT void error_ex __PROTO((void));
  62.  
  63. #endif
  64.